package com.rjwh.dingdong.client.network;

import org.ksoap2.transport.HttpTransportSE;
import org.ksoap2.transport.ServiceConnection;
import org.ksoap2.transport.ServiceConnectionSE;

import java.io.IOException;

public class MyAndroidHttpTransport extends HttpTransportSE {

    private int timeout = NetConnection.HTTP_CONNECT_TIME_OUT;

    public MyAndroidHttpTransport(String url) {
        super(url);
    }

    public MyAndroidHttpTransport(String url, int timeout) throws IOException {
        super(url,timeout);
    }

    protected ServiceConnection getServiceConnection(String url)
            throws IOException {
        ServiceConnectionSE serviceConnection = new ServiceConnectionSE(url);
        serviceConnection.setConnectTimeOut(timeout);
        return new ServiceConnectionSE(url);
    }
}
